#![allow(non_snake_case)]
use leptos::prelude::*;

#[component]
pub fn ServerError(err_msg: Oco<'static, str>) -> impl IntoView {
    return view! {
        <div class="hero h-full w-full bg-base-200">
            <div class="hero-content text-center">
                <div class="max-w-md">
                    <h3 class="text-5xl font-bold">错误发生了!</h3>
                    <p class="py-4">{err_msg}</p>
                </div>
            </div>
        </div>
    };
}